package com.example.drainage.ui.realmdao;

import java.util.UUID;

import io.realm.RealmList;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * author : yanghaozhang
 * date : 2022/8/3 15:57
 * description :
 */
public class RealmDaoPackageBean extends RealmObject {

    @PrimaryKey
    private String id;
    private RealmDaoObj obj;
    private RealmList<RealmDaoObj> list;

    public RealmDaoPackageBean() {
        id = UUID.randomUUID().toString();
    }

    public RealmDaoPackageBean(RealmDaoObj obj, RealmList<RealmDaoObj> list) {
        this();
        this.obj = obj;
        this.list = list;
    }

    @Override
    public String toString() {
        return "RealmDaoPackageBean{" +
                "id='" + id + '\'' +
                ", obj=" + obj +
                ", list=" + list +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public RealmDaoObj getObj() {
        return obj;
    }

    public void setObj(RealmDaoObj obj) {
        this.obj = obj;
    }

    public RealmList<RealmDaoObj> getList() {
        return list;
    }

    public void setList(RealmList<RealmDaoObj> list) {
        this.list = list;
    }
}
